'''
OrderedDict


'''

from collections import OrderedDict
a = OrderedDict()
a['a'] = 10
a['e'] = 20
a['c'] = 30
a['d'] = 40
a['f'] = 50
a['b'] = 60
a['g'] = 70

print(a)

b = OrderedDict(sorted(a.items(), key=lambda x:x[0]))

print(b)
print(dir(b))